
<?php 

// print_r($this->Session->read("conditions"));

?>

	<ul class="breadcrumb">
		<li><a href="<?php echo $this->webroot;?>">Home</a> <span class="divider">/</span></li>
		<li class="active"><?php echo __("Lista Gruppi") ?></li>
	</ul>

	<table class="table table-condensed table-bordered table-hover table-striped">
	    <thead>
	      <tr>
	        <th></th>
		        <th>Id</th>
		        <th>Descrizione</th>
	        <th></th>
	      </tr>
	    </thead>
	    <tbody>
			<?php foreach ($groups as $group): ?> 
			<tr>
				<td><?php echo $this->Acl->link("<i class='icon-pencil'></i>",array("controller" => "Groups", 'action' => 'edit', $group['Group']['id']), array('escape'=>false));  ?></td>
				<td><?php echo $group['Group']['id']; ?></td> 
				<td><?php echo $group['Group']['descrizione']; ?></td> 
				<td><?php echo $this->Acl->link("<i class='icon-trash'></i>",array("controller" => "Groups", 'action' => 'delete', $group['Group']['id']), array('data-confirm'=>'true', 'escape'=>false));  ?></td>
			</tr>
			<?php endforeach; ?>
			<?php unset($groups); ?> 
			<tr>
				<td ><?php echo $this->Acl->link("<i class='icon-plus'></i>", "/Groups/add", array('escape'=>false));  ?></td>
			</tr>					
	    </tbody>
	</table>



